home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Trouble & Attitude 4
/
Trouble and Attitude - Issue 04.iso
/
mac
/
DATA
/
MOVIES
/
Shared.Cxt
/
00076_Field_Sidebar Script Template.txt
< prev
next >
Wrap
Text File
|
1997-02-06
|
3KB
|
115 lines
--
-- Edge SIDEBAR Script 31-Oct-96
--
-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
on enterFrame
global gMovieName, gMovie, gSoloMode
global gNextIcon, gPreIcon, gBackIcon, gControlIcon, gIndexIcon, gFirstIcon
global gLastFrame, gMusicOn, gCaptionOn
global gLocalSound
global gCurPath, gNavMode, gControlPanel
global gMultiPageSidebar -- quick KLUDGE
set gNavMode = "sidebar"
if voidP("gMultiPageSidebar") then set gMultiPageSidebar = FALSE
-- make sure the control panel is updated in every way
if objectP(gControlPanel) then
tell window "Control Panel"
setIconStatus "music", gMusicOn
setIconStatus "caption", gCaptionOn
end tell
end if
if the frame = label("S5") then
set gMultiPageSidebar = TRUE
end if
if gLocalSound = TRUE then
if soundBusy(1) = FALSE then
sound playFile 1, gCurPath & "DATA:EDGE:EDGELP.AIF"
end if
end if
end enterFrame
-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
on exitFrame
global gMovieName, gMovie, gSoloMode
global gNextIcon, gPreIcon, gBackIcon, gControlIcon, gIndexIcon, gFirstIcon
global gLastFrame
if gSoloMode = FALSE then keepmusic
go to the frame
end exitFrame
-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
on MouseUp
global gMovieName, gMovie, gSoloMode
global gNextIcon, gPreIcon, gBackIcon, gControlIcon, gIndexIcon, gFirstIcon
global gLastFrame, gPlaceOfOrigin
global gSideBarOfOrigin, gMap1Icon, gMap2Icon, gMultiPageSidebar
case the ClickOn of
gControlIcon:
openControlPanel
gPreIcon:
if gMultiPageSidebar = FALSE then
-- single page sidebar
if the frame = label("M1") then
go to frame gSideBarOfOrigin
else if the frame = label("M2") then
go to frame gSideBarOfOrigin
else
go to frame gPlaceOfOrigin
end if
else
-- multiple page sidebar
if the frame = label("S5") then -- KLUDGE
set gMultiPageSidebar = FALSE
go to frame gPlaceOfOrigin
else
go to the frame - 1
end if
end if
gNextIcon:
if gMultiPageSidebar = TRUE then
if the frame = label("SE") then
set gMultiPageSidebar = FALSE
go to frame gPlaceOfOrigin
else
go to the frame + 1
end if
else
-- do nothing, there is no next
end if
gMap1Icon:
if the frame = label("S2") then
set gSideBarOfOrigin = the frame
go to frame label("M1")
end if
gMap2Icon:
if the frame = label("S2") then
set gSideBarOfOrigin = the frame
go to frame label("M2")
end if
end case
end MouseUp